import { Request } from 'express';

// 扩展Express的Request接口，添加用户信息
export interface AuthRequest extends Request {
  user?: {
    userId: number;
    userName: string;
    roles: string[];
    permissions: string[];
  };
  dataScope?: string | string[];
}

// 分页请求参数接口
export interface PaginationParams {
  pageNum?: number;
  pageSize?: number;
  orderByColumn?: string;
  isAsc?: 'asc' | 'desc';
  [key: string]: any; // 允许其他任意过滤参数
} 